import pennylane as qml
from pennylane import numpy as np

# 实例化 Quanta_CS 设备

dev = qml.device("QuantaCS.superc", wires=[0,6,10], datatype="P01", printOP=False)

@qml.qnode(dev)
def circuit():
    qml.Identity(wires=[0])
    qml.PauliX(wires=[1])
    qml.CNOT(wires=[0, 1])
    #return qml.expval(qml.PauliX(2))#支持的单比特测量
    #return qml.probs(wires=[0, 1,2])#多比特测量
    return qml.expval(qml.PauliX(0)@ qml.PauliY(1))


# 执行电路
result = circuit()
print(result)
